$(function () {
    if ($.cookie('last_game')) {
        var lastgame = $.cookie('last_game');
        var html = '';
        var temp = lastgame.split('@');
        //http://zns.wan.com/index.php?s=/game/enter/gid/25/sid/1
        for (var i = 0; i < temp.length; i++) {
            var game = temp[i].split('|');
            html += '<li><a href="'+domain+'/index.php?s=/game/enter/gid/'+game[0]+'/sid/'+game[1]+'"><i>' + game[3] + '</i>' + game[2] + '</a></li>'
        }
        $("#last_game").html(html);
    }
});


